import { View } from '@tarojs/components'

function AnimatedView(props) {
  const { style, onClick = () => {}, animation, children } = props
  return (
    <View style={style} onClick={onClick} animation={animation} className='animated-view'>
      {children}
    </View>
  )
}

AnimatedView.options = {
  addGlobalClass: true
}

export default AnimatedView
